﻿using Irony.Parsing;
using NMF.Languages.AnyText.ClassConstruction;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace NMF.Languages.AnyText
{
    public class FloatTypeTerminal : DataTypeTerminal<FloatType>
    {
        protected FloatTypeTerminal(string name, FloatType type)
            : base(name, type)
        {

        }

        public FloatTypeTerminal(string name) : this(name, new FloatType()) { }

        public override DataTypeTerminal<FloatType> CreateCustom()
        {
            return new FloatTypeTerminal("CustomFloat", new FloatType());
        }

        public override BnfExpression CreateRule(AnyTextGrammar grammar)
        {
            return TerminalFactory.CreateCSharpNumber("Number");
        }
    }
}
